<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Primus</title>

<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8010.css">

<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
<script type="text/javascript">
    	<%-- function onQnaClick() {
    		if(<%=session.getA%>) {
    			location.href="/GOP/pages/notice/qna/request_qna1.jsp";
    		} else {
    			alert("로그인을 하셔야 합니다.");
    			location.href="/GOP/pages/login/login.jsp";
    		}
    	} --%>
    </script>
</head>
<body>
	<form action="/GOP/pages/notice/list/read.jsp" method="post" name="listForm">
		<div id="container">
			<div id="content">
				<div id="main-shortCut">
					<div class="sub-main-section">
						<div class="page-type3">
							<h2>
								<p>HELP DESK</p>
								프리머스 <span>고객센터</span>
							</h2>
						</div>
						<div class="listTab mainTab">
							<div class="ars">
								<strong>ARS : 1544-5522</strong>
								<p>상담원 연결 가능 시간 : 평일 오전 9시~오후 6시</p>
							</div>
							<ul style="height: 662px;">
								<li>
									<p class="line" style="width: 990px; display: block;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/help/notice/list"><span style="width: 328px;">공지사항</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>
								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title on">
										<a><span style="width: 328px;">FAQ</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: block;">
										<li class="t-head">
											<h4 class="tit-tab">FAQ 관리자</h4>
											<div class="notice-form">
												<p><a href="/spring-GOP/help/faq/list" class="button h30 w130 white"><b>유저모드</b></a></p>
											</div>

										</li>
										<li class="table">
											<table width="100%">
												<caption class="hide">FAQ 목록</caption>
												<thead class="notice-thead">
													<tr>
														<th scope="col" class="table-head1">번호</th>
														<th scope="col" class="table-head2">카테고리</th>
														<th scope="col" class="table-head3">제목</th>
														<th scope="col" class="table-head4">등록일</th>
														<th scope="col" class="table-head5">조회수</th>
													</tr>
												</thead>
												<tbody>
													<c:forEach var="faq" items="${faqs }">
														<tr this.style.backgroundcolor="#F4F1E9">
															<td>${faq.num }</td>
															<td>[${faq.category}]</td>
															<td class="teble-content">
																<a style="cursor: pointer;" href="read?num=${faq.num}">${faq.subject}</a>
															</td>
															<td>${faq.regdate}</td>
															<td>${faq.readcount}</td>
														</tr>
													</c:forEach>
												</tbody>
											</table>
										</li>
										<!-- table -->
										<li class="page-box"><a class="on">1</a></li>
										<c:if test="${user != null}">
											<c:if test="${user.getMember_id() == 'admin' }">
												<li class="write-box" style="text-align: right; margin-right: 50px;">
													<a href="write" class="button h29 w120 orange"><b>작성하기</b></a>
												</li>
											</c:if>
										</c:if>
									</ul>
								</li>

								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/help/qna/qna_user/insert"><span
											style="width: 328px;">문의하기</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>
							</ul>
						</div>
						<!--//listTab mainTab-->
					</div>
					<!--//sub-main-section-->
				</div>
				<!--//main-shortCut-->
			</div>
			<!--//content-->
		</div>
	</form>
</body>
</html>